import sys
import views
import time

app = views.app  # 初始化app

debug = len(sys.argv) == 2 and sys.argv[1] == 'dev'
print("debug", debug, sys.argv)

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=9009, debug=debug)
